This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~George Loptumitheroni 9.Dec.03 07:31 AM a Web browser Applications Development6.0.2 CF2Windows XP
I've the following XML formatted file:
<Main>
<CompanyName>Test</CompanyName>
<Address>
<Type>Postal</Type>
<Street>PO BOX 48</Street>
<Zip>52222</Zip>
</Address>
<Address>
<Type>Registered</Type>
<Street>123 My Street</Street>
<Zip>52222</Zip>
</Address>
<Person>
<Name>James</Name>
<Address>123 James address</Address>
</Person>
<Person>
<Name>Paul</Name>
<Address>123 Paul address</Address>
</Person>
</Main>
When i use:
Set addrList = eNode.GetElementsByTagName("address")
For j = 1 To addrList.NumberOfEntries
'process each of the address tag
Next
The number of entries for address tag is 4, because there are 4 address tags.
Is there a method that will only allow me to retrieve the address tags under the parent <Main> tag but not under the <Person> tags. Basically, i'm trying to process the tags in each of the <Person> tag together...
i.e.
The process that i want:
From the root, process:
- companyName tag and retrieve its value
- process each of the address tag and retrieve the values in Type, Street and Zip tags
- process each of the Person tag and retrieve the values in Name and address tags